package book.service.impl;

import book.entity.jilu;
import book.service.JieYueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import book.dao.jiluDao;

import java.util.List;
@Service
public class JieYueServiceImpl implements JieYueService {


    @Autowired
    private jiluDao jiluDao;
    @Override
    public List<jilu> getByPage(int offset, int limit, jilu condition) {
        return jiluDao.getByPage(offset, limit, condition);
    }

    @Override
    public List<jilu> getAll() {
        return jiluDao.getAll();
    }

    @Override
    public jilu getById(int dz_id) {
        return jiluDao.getById(dz_id);
    }

    @Override
    public List<jilu> getDz_id(int dz_id) {
        return jiluDao.getDz_id(dz_id);
    }



    @Override
    public int updateReurn(int jy_id) {
        return jiluDao.updateReurn(jy_id);
    }



    @Override
    public void insetEntity(jilu jilu) {
        jiluDao.insertEntity(jilu);
    }


}
